<?php 
/* [ DOM ] */

	define('DOM_RUN_ID', 				'domfgSite' ); // It should be unique for every configuration used with DOM framework. It must start with a letter!
	
	define('DOM_DEBUG_PASSWORD',		'debugger'); // Allows activating debug mode from URL like using like &debugMode=MY_PASSWORD
	
	define('SITE_PATH',					dirname(__FILE__) .'/../' );
	
	define('SITE_URL',					'http://localhost/CODE/samples/' );
	
	define('DOM_URL', 					'http://localhost/CODE/libs/' );
	
	define('DOM_PATH', 					dirname(__FILE__).'/../../libs/' );
	
	define('DOM_CACHE_PATH',			SITE_PATH.'files/cache/'); // Where cache files will be saved.
	
	define('DOM_CONF_DIR_PATH',			SITE_PATH.'conf/');
	
	define('DOM_ADMIN_EMAIL',			'oliver@inditel.ee');	
	
	define('DOM_MONITOR_LOG',			false);

/* [ MYSQL ] */

	define('MYSQL_HOST', 				'localhost');
	
	define('MYSQL_USERNAME', 			'root');
	
	define('MYSQL_PASSWORD', 			'');
	
	define('MYSQL_DATABASE', 			'dom_samples');
	
/* [ DOM USER ] */
	
	define('DOM_USER_GLOBAL_PASSWORD', 	''); //md5 hash of password that can be used to login with every user
	
	define('DOM_USER_COOKIE_PASSWORD',	''); // this password will be used to generate user login cookie hash. If its not set, cookie login is disabled.
	
/* [ DOM CACHE ] */

	define('DOM_CACHE_LIFE',			3600);
	
	define('DOM_CACHE_TYPE',			1 ); // 0 - file, 1 - xcache
	
	define('DOM_AUTOLOAD_LOCKER_WAIT_TIME', 10 );
	
	define('DOM_AUTOLOAD_LOCKER_EXIST_TIME', 10 );
	
	define('DOM_AUTOLOAD_CACHE_LIFE', 		31536000 ); // How long classes and functions paths cache file is stored.

/* [ DOM ACTIVE RECORD ] */

	define('DOMAR_PUBLISHED', 			false ); // checks if any domar class files is changed and if it is updates it. Checks are done during classload! Useful for code refactoring and testing.
	
	define('DOMAR_CACHE',				true ); // Domar class files cache is regenerated every time. Makes your script real slow :)
	
	define('DOMAR_CACHE_DIR_PATH',		DOM_CACHE_PATH . 'DomAr/');
	
	//--> DOM ACTIVE RECORD PLUGINS
	
	define('DOMAR_DATETIME_DEFAULT_FORMAT',		'Y-m-d H:i:s');

	define('DOMAR_DATE_DEFAULT_FORMAT',		'Y-m-d');
	
	define('DOMAR_TIME_DEFAULT_FORMAT',		'H:i:s');
	
	//--> DOM ACTIVE RECORD FILE
	
	define('DOMAR_FILE_DEFAULT_PATH',		SITE_PATH . 'files/Upload/');
	
	define('DOMAR_FILE_DEFAULT_URL',		SITE_URL . 'files/Upload/');


/* [ DOM ERROR CONTROL ] */

	define('DOM_SAFE_ERRORS', 			false );
	
	define('DOM_SEND_ERRORS_TO_EMAIL', 	DOM_ADMIN_EMAIL ); // set to false if you dont want email reporting.
	
	define('DOM_DEFAULT_ERROR_STYLE', 	'Default');

/* [ DOM FILE LOGGER ] */

	define('DOM_LOG_DIR_PATH', 			SITE_PATH.'files/log/');

/* [ DOM CONTROLLER ] */
	
	define('DOM_TEMPLATES_DIR', SITE_PATH.'application/view/' );
	
	define('DOM_TEMPLATES_URL', SITE_URL.'application/view/' );
	
	define('DOM_MEDIA_DIR', SITE_PATH.'application/media/' );
	
	define('DOM_MEDIA_URL', SITE_URL.'application/media/' );

	define('DOM_CONTROLLERS_DIR', SITE_PATH.'application/controllers/' );
	
	define('DOM_MODELS_DIR', SITE_PATH.'application/models/' );
	
	define('DOM_PARTITIONERS_MOD_CHECK', true ); // checks if any changes are made to partitioner files. Useful for development, should be set to false for publishing

/* [ SMARTY ] */

	define('SMARTY_COMPILE_DIR', DOM_CACHE_PATH.'SmartyCompile/' );
	
	define('SMARTY_CACHE_DIR', DOM_CACHE_PATH.'SmartyCache/' );
	
?>